package com.cl.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
/**
 * @author liddhappy
 * @description 平台menus
 * @createTime 2022/12/3 17:56
 */
@Data
@ApiModel(value="平台菜单", description="菜单")
public class PlatformMenus extends PlatformBaseEntry {
    private static final long serialVersionUID = 1L;

    @TableId(value = "menuId",type = IdType.AUTO)
    @ApiModelProperty(value = "菜单id", required = true)
    private Long menuId;

    @ApiModelProperty(value = "菜单名称", required = true)
    private String menuName;

    @ApiModelProperty(value = "父菜单ID", required = true)
    private Long parentId;

    @ApiModelProperty(value = "父菜单名称", required = true)
    private String parentName;

    @ApiModelProperty(value = "显示顺序", required = true)
    private String orderNum;

    /**
     * 类型（M目录 C菜单 F按钮）
     */
    @ApiModelProperty(value = "菜单类型", required = true)
    private String menuType;

    /**
     * 菜单状态（0显示 1隐藏）
     */
    @ApiModelProperty(value = "菜单状态", required = true)
    private String menuStatus;

    /**
     * 是否刷新（0刷新 1不刷新）
     */
    @ApiModelProperty(value = "是否刷新", required = true)
    private String isRefresh;


    @ApiModelProperty(value = "权限字符串", required = true)
    private String permission;

    @ApiModelProperty(value = "子菜单", required = true)
    private List<PlatformMenus> children = new ArrayList<>();
}
